/**
 * 
 */
package com.ls.lsqc.modules.sys.dao;

import com.ls.lsqc.common.persistence.CrudDao;
import com.ls.lsqc.common.persistence.annotation.MyBatisDao;
import com.ls.lsqc.modules.sys.entity.Sequence;

/**
 * Code接口
 * 
 * @author liupeng
 * @version 2016-10-25
 */
@MyBatisDao
public interface SequenceDao extends CrudDao<Sequence> {

	public Sequence getByCode(String code);

	public Sequence getCodeInfo(String code);

	public Sequence getKeyWord(String code);

	public int updateNumber(String code);

	public int insertSequence(String code);

	public int updateSequence(String oldCode, String newCode);

	// 更新企业定制生产号
	public int updateKeyWord(String code, String keyWord, long number);
}
